//var retrLFM = false;

function loadEntryFromLFM() {
	//if (!retrLFM) {
		//retrLFM = true;
		activeId = vid[currentSlot].vidId;
		printLog('Retrieving similar video to '+activeId);
		$.ajax({
		  type: "POST",
		  url: "index.php?m=search&t=yt_getsimilar",
		  data: "q="+activeId,
		  success: function(html){
			lfmResults = html;			
			vidId = playlistGetVidId(lfmResults);
			if (playlistVidExists(vidId)) {
				printLog('Video '+vidId+' already in playlist');
			} else if (trim(lfmResults)) {
				printLog('Similar video added');
				playlistAddEntry(lfmResults);
			} else {
				printMsg('No result for similar video', 0);
				printLog('No LFM result for video id: '+activeId);
			}
			//retrLFM = false;
	   	  }
		});
//	}
}